﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020005F7 RID: 1527
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GachaCeilingAvatar : IMessage<GachaCeilingAvatar>, IMessage, IEquatable<GachaCeilingAvatar>, IDeepCloneable<GachaCeilingAvatar>, IBufferMessage
	{
		// Token: 0x1700139E RID: 5022
		// (get) Token: 0x060044B6 RID: 17590 RVA: 0x000BC154 File Offset: 0x000BA354
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GachaCeilingAvatar> Parser
		{
			get
			{
				return GachaCeilingAvatar._parser;
			}
		}

		// Token: 0x1700139F RID: 5023
		// (get) Token: 0x060044B7 RID: 17591 RVA: 0x000BC15B File Offset: 0x000BA35B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GachaCeilingAvatarReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170013A0 RID: 5024
		// (get) Token: 0x060044B8 RID: 17592 RVA: 0x000BC16D File Offset: 0x000BA36D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GachaCeilingAvatar.Descriptor;
			}
		}

		// Token: 0x060044B9 RID: 17593 RVA: 0x000BC174 File Offset: 0x000BA374
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GachaCeilingAvatar()
		{
		}

		// Token: 0x060044BA RID: 17594 RVA: 0x000BC17C File Offset: 0x000BA37C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GachaCeilingAvatar(GachaCeilingAvatar other) : this()
		{
			this.avatarId_ = other.avatarId_;
			this.repeatedCnt_ = other.repeatedCnt_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060044BB RID: 17595 RVA: 0x000BC1AD File Offset: 0x000BA3AD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GachaCeilingAvatar Clone()
		{
			return new GachaCeilingAvatar(this);
		}

		// Token: 0x170013A1 RID: 5025
		// (get) Token: 0x060044BC RID: 17596 RVA: 0x000BC1B5 File Offset: 0x000BA3B5
		// (set) Token: 0x060044BD RID: 17597 RVA: 0x000BC1BD File Offset: 0x000BA3BD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AvatarId
		{
			get
			{
				return this.avatarId_;
			}
			set
			{
				this.avatarId_ = value;
			}
		}

		// Token: 0x170013A2 RID: 5026
		// (get) Token: 0x060044BE RID: 17598 RVA: 0x000BC1C6 File Offset: 0x000BA3C6
		// (set) Token: 0x060044BF RID: 17599 RVA: 0x000BC1CE File Offset: 0x000BA3CE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint RepeatedCnt
		{
			get
			{
				return this.repeatedCnt_;
			}
			set
			{
				this.repeatedCnt_ = value;
			}
		}

		// Token: 0x060044C0 RID: 17600 RVA: 0x000BC1D7 File Offset: 0x000BA3D7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GachaCeilingAvatar);
		}

		// Token: 0x060044C1 RID: 17601 RVA: 0x000BC1E5 File Offset: 0x000BA3E5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GachaCeilingAvatar other)
		{
			return other != null && (other == this || (this.AvatarId == other.AvatarId && this.RepeatedCnt == other.RepeatedCnt && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060044C2 RID: 17602 RVA: 0x000BC224 File Offset: 0x000BA424
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.AvatarId != 0U)
			{
				num ^= this.AvatarId.GetHashCode();
			}
			if (this.RepeatedCnt != 0U)
			{
				num ^= this.RepeatedCnt.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060044C3 RID: 17603 RVA: 0x000BC27C File Offset: 0x000BA47C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060044C4 RID: 17604 RVA: 0x000BC284 File Offset: 0x000BA484
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060044C5 RID: 17605 RVA: 0x000BC290 File Offset: 0x000BA490
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.AvatarId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.AvatarId);
			}
			if (this.RepeatedCnt != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.RepeatedCnt);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060044C6 RID: 17606 RVA: 0x000BC2EC File Offset: 0x000BA4EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.AvatarId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AvatarId);
			}
			if (this.RepeatedCnt != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.RepeatedCnt);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060044C7 RID: 17607 RVA: 0x000BC344 File Offset: 0x000BA544
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GachaCeilingAvatar other)
		{
			if (other == null)
			{
				return;
			}
			if (other.AvatarId != 0U)
			{
				this.AvatarId = other.AvatarId;
			}
			if (other.RepeatedCnt != 0U)
			{
				this.RepeatedCnt = other.RepeatedCnt;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060044C8 RID: 17608 RVA: 0x000BC394 File Offset: 0x000BA594
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060044C9 RID: 17609 RVA: 0x000BC3A0 File Offset: 0x000BA5A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 48U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.RepeatedCnt = input.ReadUInt32();
					}
				}
				else
				{
					this.AvatarId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001B17 RID: 6935
		private static readonly MessageParser<GachaCeilingAvatar> _parser = new MessageParser<GachaCeilingAvatar>(() => new GachaCeilingAvatar());

		// Token: 0x04001B18 RID: 6936
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001B19 RID: 6937
		public const int AvatarIdFieldNumber = 2;

		// Token: 0x04001B1A RID: 6938
		private uint avatarId_;

		// Token: 0x04001B1B RID: 6939
		public const int RepeatedCntFieldNumber = 6;

		// Token: 0x04001B1C RID: 6940
		private uint repeatedCnt_;
	}
}
